3.4.16 \(\int (a+b x^n)^p \, dx\) [316]

Optimal. Leaf size=46 \[ x \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};-\frac {b x^n}{a}\right ) \]

[Out]

x*(a+b*x^n)^p*hypergeom([-p, 1/n],[1+1/n],-b*x^n/a)/((1+b*x^n/a)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {252, 251} \begin {gather*} x \left (a+b x^n\right )^p \left (\frac {b x^n}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};-\frac {b x^n}{a}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^n)^p,x]

[Out]

(x*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), -((b*x^n)/a)])/(1 + (b*x^n)/a)^p

Rule 251

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rule 252

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^Fra
cPart[p]), Int[(1 + b*(x^n/a))^p, x], x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILt
Q[Simplify[1/n + p], 0] &&  !(IntegerQ[p] || GtQ[a, 0])

Rubi steps

\begin {align*} \int \left (a+b x^n\right )^p \, dx &=\left (\left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p}\right ) \int \left (1+\frac {b x^n}{a}\right )^p \, dx\\ &=x \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};-\frac {b x^n}{a}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 46, normalized size = 1.00 \begin {gather*} x \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \, _2F_1\left (\frac {1}{n},-p;1+\frac {1}{n};-\frac {b x^n}{a}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^n)^p,x]

[Out]

(x*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), -((b*x^n)/a)])/(1 + (b*x^n)/a)^p

________________________________________________________________________________________

Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \left (a +b \,x^{n}\right )^{p}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*x^n)^p,x)

[Out]

int((a+b*x^n)^p,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*x^n)^p,x, algorithm="maxima")

[Out]

integrate((b*x^n + a)^p, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*x^n)^p,x, algorithm="fricas")

[Out]

integral((b*x^n + a)^p, x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 0.80, size = 37, normalized size = 0.80 \begin {gather*} \frac {a^{p} x \Gamma \left (\frac {1}{n}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{n}, - p \\ 1 + \frac {1}{n} \end {matrix}\middle | {\frac {b x^{n} e^{i \pi }}{a}} \right )}}{n \Gamma \left (1 + \frac {1}{n}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*x**n)**p,x)

[Out]

a**p*x*gamma(1/n)*hyper((1/n, -p), (1 + 1/n,), b*x**n*exp_polar(I*pi)/a)/(n*gamma(1 + 1/n))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*x^n)^p,x, algorithm="giac")

[Out]

integrate((b*x^n + a)^p, x)

________________________________________________________________________________________

Mupad [B]
time = 2.30, size = 47, normalized size = 1.02 \begin {gather*} \frac {x\,{\left (a+b\,x^n\right )}^p\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{n},-p;\ \frac {1}{n}+1;\ -\frac {b\,x^n}{a}\right )}{{\left (\frac {b\,x^n}{a}+1\right )}^p} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^n)^p,x)

[Out]

(x*(a + b*x^n)^p*hypergeom([1/n, -p], 1/n + 1, -(b*x^n)/a))/((b*x^n)/a + 1)^p

________________________________________________________________________________________